/** bolaserver.h - Servidor do jogo **/
#ifndef __BOLASERVER_H__
#define __BOLASERVER_H__

#define MAXROOMS 100

/* nó de uma lista encadedada de tacadas */
typedef struct shot_sequence
{
    shot s;
    struct shot_sequence *next;
} shot_sequence;

/* "cabeça" da lista encadeada */
typedef struct shots
{
    int shot_number;
    shot_sequence *first;
} shots;

enum
{ WAITING, PLAYING };           /* status da sala */

typedef struct game_room
{
    char name[80];
    player p1;
    player p2;
    shots s;
    int status;
} game_room;


void init_server(void);

#endif
